#include "Filter.h"

namespace cm_media
{
    Filter::Filter(): m_state(FilterStateVoid), m_parent(NULL)
    {

    }

    Filter::~Filter()
    {

    }

    FilterState Filter::getState()
    {
        return m_state;
    }

    int Filter::translateStateTo(FilterState state)
    {
        switch(state)
        {
        }
        return CmMediaFail;
    }

    int Filter::setParent( Graph* p_parent)
    {
        poco_assert( p_parent!=NULL );
        m_parent = p_parent;

        return CmMediaSucess;
    }

    Graph* Filter::getParent()
    {
        return m_parent;
    }

    

}